import { useEffect } from "react"


export const useMounted= (callback) => {
    useEffect(() => {
        callback()
    },[])
}